﻿using AutoMapper;

namespace Maint.Api.Applications.Profiles
{
    public class MaintProfile : Profile
    {
        public MaintProfile()
        {
            CreateMap(typeof(PagedModel<>), typeof(PageModelVo<>)).ForMember("XData", opt => opt.Ignore());
            //CreateMap<OpsLogCreationDto, OperationLog>();
            CreateMap<OperationLog, OpsLogVo>();
            CreateMap<LoginLog, LoginLogVo>();
            //CreateMap<LoggerLog, NlogLogDto>();
            //CreateMap<NloglogProperty, NlogLogPropertyDto>();
            CreateMap<CfgCreationDto, Cfg>();
            CreateMap<Cfg, CfgVo>();

            CreateMap<DictCreationDto, Dict>();
            CreateMap<Dict, DictVo>();
            CreateMap<Notice, NoticeVo>().ReverseMap();
            //CreateMap<DictDto, DictReply>();

        }
    }
}
